package main

import (
	"fmt"
)

type Friend struct {
	Fname string
}

func main() {
	fmt.Println("Hello, World!")
	s := []string{"lang", "lang2"}
	fmt.Println("s[0]", s[0])

	f1 := Friend{Fname: "chen"}
	f2 := Friend{Fname: "chen2"}
	fs := []*Friend{&f1, &f2}
	fmt.Println("f[0]", fs[0])
	fmt.Println("f[0]", *fs[0])
	fmt.Println("f[0]", fs[0].Fname)
	//	fmt.Println("f[0]", *fs[0].Fname) error
}
